<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>

    <style>
      .box {
        width: 300px;
        height: 400px;

        margin: 100px auto;
        position: relative;
      }

      .box img {
        position: absolute;
        transition: all 1s;

        /* 设置变换中心*/
        transform-origin: center 400px;
        box-shadow: 2px 2px 3px 0px #333;
      }

      .box:hover img:nth-child(6) {
        transform: rotate(360deg);
      }

      .box:hover img:nth-child(5) {
        transform: rotate(330deg);
      }

      .box:hover img:nth-child(4) {
        transform: rotate(300deg);
      }
      .box:hover img:nth-child(3) {
        transform: rotate(270deg);
      }
      .box:hover img:nth-child(2) {
        transform: rotate(240deg);
      }
      .box:hover img:nth-child(1) {
        transform: rotate(210deg);
      }

      .box:hover img:nth-child(8) {
        transform: rotate(30deg);
      }

      .box:hover img:nth-child(9) {
        transform: rotate(60deg);
      }

      .box:hover img:nth-child(10) {
        transform: rotate(90deg);
      }
      .box:hover img:nth-child(11) {
        transform: rotate(120deg);
      }
      .box:hover img:nth-child(12) {
        transform: rotate(150deg);
      }
      .box:hover img:nth-child(13) {
        transform: rotate(180deg);
      }
    </style>
  </head>
  <body>
    <div class="box">
      <img src="./pk1.png" alt="" width="200px" />
      <img src="./pk2.png" alt="" width="200px" />
      <img src="./pk1.png" alt="" width="200px" />
      <img src="./pk2.png" alt="" width="200px" />
      <img src="./pk1.png" alt="" width="200px" />
      <img src="./pk2.png" alt="" width="200px" />
      <img src="./pk1.png" alt="" width="200px" />
      <img src="./pk2.png" alt="" width="200px" />
      <img src="./pk1.png" alt="" width="200px" />
      <img src="./pk2.png" alt="" width="200px" />
      <img src="./pk1.png" alt="" width="200px" />
      <img src="./pk2.png" alt="" width="200px" />
      <img src="./pk1.png" alt="" width="200px" />
    </div>
  </body>
</html>
